const product = {
    id: 'ak001',
    name: 'ak47',
    isSale: false
  }
  
  Object.entries(product).forEach(([key, value]) => {
    if(['id', 'name'].includes(key)) {
      console.log(key,value)
    }
  })